'use strict';
import * as Koa from 'koa';
import { router, prefix } from '../middleware/router';
import { response } from '../middleware/result';
import { merchant_wineService } from '../service/merchant_wine';
import { merchantService } from '../service/merchant';
import { customer_orderService } from '../service/customer_order';
import { merchantapplywineService } from '../service/MerchantApplyWine';
@prefix('merchantapplywine')
class MerchantApplyWineRecordsController {
     
    
    
    @router('/querybymid', { method: 'post' })
    async querywinebymid(ctx: Koa.Context) {
        let result = await merchantapplywineService.query(ctx.request.body);
        response(ctx, result);
    }


    //查询商户未审核申请补货记录
    @router('/querynoauditbymid', { method: 'post' })
    async querynoauditbymid(ctx: Koa.Context) {
        let doc=ctx.request.body;
        let result = await merchantapplywineService.query({SendStatus:0});
        response(ctx, result);
    }

}